import unittest
import HTMLTestRunner

Log = unittest.defaultTestLoader.discover('./project', pattern='Login_test.py')
file = open('C:\\pycharm\\qfProject\\Test\\Login.html', 'wb')
runner = HTMLTestRunner.HTMLTestRunner(stream=file, verbosity=1, title='登录测试', description='登录测试详情文件')
runner.run(Log)